package com.lsp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lsp.mapper.BrandMapper;
import com.shop.pojo.pms.Pms_Brand;
import com.shop.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandService {
    @Autowired
    private BrandMapper brandMapper;


    public R info(List<Long> brandIds){

        List<Pms_Brand> brand_id = brandMapper.selectList(new QueryWrapper<Pms_Brand>().in("brand_id", brandIds));

        return R.ok().put("brands", brand_id);
    }
}
